setOnQueryTextListener

Sets a listener for user actions within the SearchView.

Parameters

listener

the listener object that receives callbacks when the user performs actions in the SearchView such as clicking on buttons or typing a query.